import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [

  {
    path: '',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/home/Home.vue')
  },
  {
    path: '/cate',
    name: 'Cate',
    component: () => import('../views/cate/Cate.vue')
  },
  {
    path: '/profile',
    name: 'Profile',
    component: () => import('../views/profile/Profile.vue')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/auth/Login.vue')
  },
  // {
  //   path: '/button',
  //   name: 'Button',
  //   component: () => import(/* webpackChunkName: "about" */ '../components/Button.vue')
  // },
  // {
  //   path: '/layout',
  //   name: 'Layout',
  //   component: () => import(/* webpackChunkName: "about" */ '../components/Layout.vue')
  // },
  // {
  //   path: '/container',
  //   name: 'Container',
  //   component: () => import(/* webpackChunkName: "about" */ '../components/Container.vue')
  // }
  
  // {
  //   path: '/',
  //   name: 'Home',
  //   component: Home
  // },
  // {
  //   path: '/about',
  //   name: 'About',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = new VueRouter({
  routes
})

export default router
